package nige.portable.commun;

import javax.microedition.lcdui.Canvas;

public class Rendering extends Thread {
	public Rendering(Canvas canvasT) {
		canvas = canvasT;
	}
	private Canvas canvas = null;
	public void run() {
		if(canvas!=null) {
			while(true) {
				try {
					canvas.repaint();
					sleep(20);
				}
				catch(Exception e) {
					System.out.println(e);
				}
			}
		}
	}
}
